﻿
/**
 * Contains platform independent stuff to create the Famine base logic.
 */

namespace FamineSystem {
    public partial class Famine {

        static internal IFamineClient client;
        static internal Gfx gfx;

        static Famine () {
        }

        internal static void preinit () {
            client.preinit();
        }

        internal static bool tick () {
            bool ret = true;
            ret &= client.tick();

            return ret;
        }

        internal static void render () {
            gfx.clear();
            client.render();
        }

        public static void invoke( IFamineClient client ) {
            Famine.client = client;
            Famine.gfx = new Gfx();
            Famine.platformInvoke();
        }

    }
}

